package com.cjl.eater.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjl.common.dtos.LoginDto;
import com.cjl.common.dtos.PageDto;
import com.cjl.common.dtos.ResponseResult;
import com.cjl.eater.dtos.EaterFoodRelationsDto;
import com.cjl.eater.dtos.EaterInfoDto;
import com.cjl.eater.dtos.EaterLoginDto;
import com.cjl.eater.pojos.Eater;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/7 17:02
 */
public interface EaterService extends IService<Eater> {
    /**
     *  登录/注册
     * @param eaterLoginDto
     * @return ResponseResult
     */
    ResponseResult login(LoginDto eaterLoginDto);

    /**
     * 修改密码
     *
     * @param eaterLoginDto
     * @return ResponseResult
     */
    ResponseResult modifyPassword(LoginDto eaterLoginDto);

    /**
     * 填写个人信息
     *
     * @param eaterInfoDto
     * @return ResponseResult
     */
    ResponseResult modifyEaterInfo(EaterInfoDto eaterInfoDto);

    /**
     * 用户行为记录
     * @param eaterFoodRelationsDto
     * @return ResponseResult
     */
    ResponseResult saveEaterBehavior(EaterFoodRelationsDto eaterFoodRelationsDto);

    /**
     * 根据菜名查询菜品
     * @param foodName 菜名
     * @return ResponseResult
     */
    ResponseResult searchFood(String foodName) throws Exception;

    /**
     * 菜品列表
     * @param pageDto 分页dto
     * @return ResponseResult
     */
    ResponseResult foodList(PageDto pageDto);
}
